﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 对应数据库中 order_detail 表（从截图看表名可能是 order_detail ，按实际为准）的实体类
    /// </summary>
    public class OmSalesOrderDetail
    {
        /// <summary>
        /// 销售订单明细ID，对应数据库表中 sales_detail_id 列
        /// </summary>
        [Key]
        public long SalesDetailId { get; set; }

        /// <summary>
        /// 销售订单ID，对应 sales_order_id 列
        /// </summary>
        public long SalesOrderId { get; set; }

        /// <summary>
        /// 货品编号，对应 goods_code 列
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 货品类型ID，对应 goods_type_id 列
        /// </summary>
        public long GoodsTypeId { get; set; }

        /// <summary>
        /// 销售单价，对应 sales_unit_price 列
        /// </summary>
        public decimal SalesUnitPrice { get; set; }

        /// <summary>
        /// 销售金额，对应 sales_amount 列
        /// </summary>
        public decimal SalesAmount { get; set; }

        /// <summary>
        /// 订单数量，对应 order_quantity 列
        /// </summary>
        public decimal OrderQuantity { get; set; }

        /// <summary>
        /// 出库数量，对应 outbound_qty 列
        /// </summary>
        public decimal OutboundQty { get; set; }

        /// <summary>
        /// 未发货数量，对应 unshipped_qty 列
        /// </summary>
        public decimal UnshippedQty { get; set; }

        /// <summary>
        /// 是否删除，对应 is_delete 列
        /// </summary>
        public string IsDelete { get; set; }

        /// <summary>
        /// 附件ID，对应 attachment_id 列
        /// </summary>
        public long AttachmentId { get; set; }

        /// <summary>
        /// 备注，对应 remarks 列
        /// </summary>
        public string Remarks { get; set; }
    }
}
